package com.taomu.app.zongchouhuli.http.api;

import io.reactivex.Observable;
import okhttp3.MultipartBody;
import okhttp3.ResponseBody;
import retrofit2.http.Body;
import retrofit2.http.Header;
import retrofit2.http.Headers;
import retrofit2.http.POST;
import retrofit2.http.Part;
import retrofit2.http.Url;

/**
 * Created by pxy on 2018/4/24.
 */

public interface UploadService {

    String USER_API_VERSION = "1.0.0";

    @Headers({"version: " + USER_API_VERSION})
    @POST
    Observable<ResponseBody> getUploadPostResponse(@Header("token") String token, @Url String action, @Body MultipartBody multipartBody);

    @POST
    Observable<ResponseBody> getUploadSinglePostResponse(@Header("token") String token, @Url String action, @Part MultipartBody.Part imgs);

}
